package models;

import java.util.Date;
import java.util.HashSet;
import java.util.Set;

import javax.persistence.CascadeType;
import javax.persistence.Entity;
import javax.persistence.ManyToMany;

import org.apache.commons.lang.builder.ToStringBuilder;
import org.apache.commons.lang.builder.ToStringStyle;

import siena.Model;
import siena.Table;
import siena.embed.EmbeddedMap;


@EmbeddedMap
public class EventSchedule extends BasicModel {
	
	public Date startDate;
	public Date endDate;
	
	public String startTime;
	public String endTime;
	public Boolean recurring;
	
	public EventSchedule(Date startDate, Date endDate) {
		super();
		this.startDate = startDate;
		this.endDate = endDate;
	}

	
	public String toString() {
		return new ToStringBuilder(this, ToStringStyle.SIMPLE_STYLE).append(
				startTime + " starting " + startDate).toString();
	}
}